cmake_minimum_required(VERSION 3.5...3.30)

project(learn)

# 设置输出目录
# linux动态.so库输出路径
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/out/lib")
message(STATUS "Libray Dir = ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
# 执行程序、dll动态库、pdb调试文件
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/out/bin")
message(STATUS "Runtime Dir = ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
# 静态库 .lib 动态库.lib 地址文件 linux静态库.a 静态库pdb调试文件
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/lib")
message(STATUS "Archive Dir = ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}")

# 工程通用目录
include_directories(inc)
link_directories(lib)

#添加源代码目录
# add_subdirectory(3rd/glad)
add_subdirectory(src)


